

var app=angular.module('conversionTool', []);


app.controller('createProjectCtrl', [ '$scope', '$http', function($scope, $http) {	
	
  
    
    $scope.save=function(){

		$http.post('/rest/project/createProject', {
			"projectName" : $scope.projectName,
			"description" : $scope.description
			
		}).success(function(data) {

			if (data == true) {
				location.href = "/"
			} else {
				
			}

		}).error(function(data) {

			console.log(data);
		});
    	
    }
    

    
    
    
}]);